Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python <3.10 fails on macos-14 with dyld: Library not loaded #825

Closed
2 of 5 tasks
mbway opened this issue Feb 28, 2024 · 7 comments
Closed
2 of 5 tasks

python <3.10 fails on macos-14 with dyld: Library not loaded #825

mbway opened this issue Feb 28, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@mbway
Copy link

mbway commented Feb 28, 2024

Description:

When I run this pipeline:

name: MacOsTest

on:
  workflow_dispatch:

jobs:
  test:
    name: Test
    runs-on: macos-14
    steps:
      - uses: actions/setup-python@v5
        with:
          python-version: 3.9
          architecture: "x64"
      - name: print python version
        shell: bash
        run: python --version

It fails with:

##[group]Run actions/setup-python@v5
with:
  python-version: 3.9
  architecture: x64
  check-latest: false
  token: ***
  update-environment: true
  allow-prereleases: false
##[endgroup]
##[group]Installed versions
Version 3.9 was not found in the local cache
Version 3.9 is available for downloading
Download from "https://github.com/actions/python-versions/releases/download/3.9.18-5997508477/python-3.9.18-darwin-x64.tar.gz"
Extract downloaded archive
[command]/usr/bin/tar xz -C /Users/runner/work/_temp/7b7aa7f9-b410-4ff2-b594-96144647b304 -f /Users/runner/work/_temp/5160d17b-778d-4d38-8d2e-ff031e5fc513
Execute installation script
Check if Python hostedtoolcache folder exist...
Create Python 3.9.18 folder
Copy Python binaries to hostedtoolcache folder
Create additional symlinks (Required for the UsePythonVersion Azure Pipelines task and the setup-python GitHub Action)
Upgrading pip...
##[error]dyld[3814]: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
  Referenced from: <E2FD7085-038F-3B8E-94C6-6649527BFDBE> /Users/runner/hostedtoolcache/Python/3.
##[error]9.18/x64/bin/python3.9
  Reason: tried: '/usr/local/opt/gettext/lib/libintl.8.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/gettext/lib/libintl.8.dylib' (no such file), '/usr/local/opt/gettext/lib/libintl.8.dylib' (no such file), '/usr/local/lib/libintl.8.dylib' (no such file), '/usr/lib/libintl.8.dylib' (no such file, not in dyld cache)
./setup.sh: line 52:  3814 Abort trap: 6           ./python -m ensurepip
##[error]The process '/bin/bash' failed with exit code 134

The pipeline succeeds for macos-13 or python > 3.9

Action version:
v5

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
python 3.8, 3.9

Repro steps:
explained above

Expected behavior:
the pipeline to succeed

Actual behavior:
the pipeline fails

@mbway mbway added bug Something isn't working needs triage labels Feb 28, 2024
@HarithaVattikuti
Copy link
Contributor

Hello @mbway
Thank you for creating this issue. We will investigate it and get back to you as soon as we have some feedback.

@jmarrec
Copy link

jmarrec commented Mar 8, 2024

macos-14 is an arm64 runner and you're explicitly requesting an "x64" architecture

@mbway
Copy link
Author

mbway commented Mar 8, 2024

Good point. I can't remember if it also fails without that. Either way the error message isn't very informative

@aparnajyothi-y aparnajyothi-y self-assigned this Mar 19, 2024
@aparnajyothi-y
Copy link
Contributor

aparnajyothi-y commented Mar 21, 2024

Hello @mbway, Thank you once again for creating this issue.
We have reproduced the error in our local and found that the error is due to python <3.10 versions are not added to macos-14 runner image. Please find the screenshot for reference.

image image image

Please let us know in case of any further clarifications.

@mbway
Copy link
Author

mbway commented Mar 21, 2024

ok that makes sense. So I suppose my suggestion would be that the error message for a requested version being missing should be clearer

@aparnajyothi-y
Copy link
Contributor

Hello @mbway, Thank you for the suggestion and we will look into it in future. For now we are closing this issue as setup-python is working as implemented.

@amotl
Copy link

amotl commented May 6, 2024

Hi. @aparnajyothi-y reported at #825 (comment) (thanks!):

We have reproduced the error in our local and found that the error is due to python<3.10 versions are not added to macos-14 runner image.

macos-14 aka. macos-latest has switched to being an ARM runner, only supporting newer versions of Python. If you need to support older versions, you may want to switch to macos-13.

wangxiaoying added a commit to sfu-db/connector-x that referenced this issue May 9, 2024
wangxiaoying added a commit to sfu-db/connector-x that referenced this issue May 9, 2024
FanwangM added a commit to FanwangM/Selector that referenced this issue Jun 18, 2024
macos-14 aka. macos-latest has switched to being an ARM runner, only supporting newer versions of Python. This is related to actions/setup-python#825
FanwangM added a commit to theochem/Selector that referenced this issue Jun 18, 2024
…214)

* Fix GitHub Actions crash for MacOS version change

The macos-14 aka. macos-latest has switched to being an ARM runner, only supporting newer versions of Python. This is related to actions/setup-python#825

* Relax dependency constraints
dvp2015 pushed a commit to MC-kit/mckit-nuclides that referenced this issue Jun 25, 2024
macos-14 (latest) GHA image doesn't have Python <= 3.10
see actions/setup-python#825
manugarg added a commit to manugarg/pacparser that referenced this issue Jun 26, 2024
As discussed here: actions/setup-python#825, macos-latest doesn't support Python < 3.10
FanwangM added a commit to theochem/Selector that referenced this issue Jul 2, 2024
…214)

* Fix GitHub Actions crash for MacOS version change

The macos-14 aka. macos-latest has switched to being an ARM runner, only supporting newer versions of Python. This is related to actions/setup-python#825

* Relax dependency constraints
AIWintermuteAI added a commit to AIWintermuteAI/whispercpp that referenced this issue Jul 6, 2024
alxmrs added a commit to alxmrs/cubed that referenced this issue Jul 23, 2024
alxmrs added a commit to alxmrs/cubed that referenced this issue Jul 25, 2024
alxmrs added a commit to alxmrs/cubed that referenced this issue Jul 25, 2024
alxmrs added a commit to alxmrs/cubed that referenced this issue Jul 31, 2024
alxmrs added a commit to alxmrs/cubed that referenced this issue Aug 3, 2024
miketheman added a commit to miketheman/pyramid_services that referenced this issue Aug 23, 2024
GHA Runners with `macos-latest` are getting macOS 14 and fail to setup older versions of Python.

Refs: actions/setup-python#825 (comment)
daneah added a commit to TomJGooding/trogon that referenced this issue Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants